package com.gd.client.ui;


import com.gd.client.service.ClientContext;
import com.gd.client.service.ClientControler;
import com.gd.main.R;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class P06_LaoBottle extends Activity{
    private Button K0601;

    private ClientContext clientContext;
    private ClientControler clientControler;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
        setContentView(R.layout.p06_laobottle);
        System.out.println("R.layout.p06_laobottle");
		clientControler=ClientControler.NewClientControler();
		clientControler.setCurrentActivity(this);
		clientContext=ClientContext.NewClientContext();
  
        K0601 = (Button)findViewById(R.id.K0601);
        System.out.println("K0601");
        K0601.setOnClickListener(findGuDong);
        System.out.println("findGuDong");
        
	}
	private View.OnClickListener findGuDong=new View.OnClickListener() {
		public void onClick(View v) {
			// TODO Auto-generated method stub

			clientControler.K0601();
		}
	};

	public void toastShow(String msg){
		Toast toast =Toast.makeText(getApplicationContext(),msg,Toast.LENGTH_SHORT);
		toast.setGravity(Gravity.CENTER,0,0);
		toast.show();
	}
}
